<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %> 
<%
	String path = request.getContextPath();
	System.out.print(path);
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	System.out.print(basePath);
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>TI - 测试集成管理系统</title>
<!-- <link
	href="http://cdn.bootcss.com/bootstrap/3.0.1/css/bootstrap-theme.min.css"
	rel="stylesheet"> -->
<%-- <link
	href="http://cdn.bootcss.com/bootstrap/3.0.1/css/bootstrap.min.css"
	rel="stylesheet">
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"
	type="text/javascript"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.0.1/js/bootstrap.min.js"
	type="text/javascript"></script> --%>

<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
	function getPage(o) {
		//alert("change page!");
		//$("mainFramePage").src="http://www.baidu.com";
		document.getElementById("mainFramePage").src = o.id;
	}
</script>
<style type="text/css">
/* html {
	height: 100%;
	margin: 0;
}

body {
	height: 100%;
	margin: 0;
}

.navbar-bootom {
	min-height: 50px;
} */
body {
	height: 100%;
	overflow: hidden;
	margin: 0px;
	padding: 0px;
}

.box {
	height: 100%;
	background: #ff0000;
	position: absolute;
	width: 100%;
}
</style>
</head>
<body style="padding: 0px">
	<div class="box">
		<div class="row clearfix">
			<div class="col-md-12 column">
				<nav class="navbar navbar-default navbar-inverse navbar-static-top"
					role="navigation">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse"
							data-target="#bs-example-navbar-collapse-1">
							<span class="sr-only">Toggle navigation</span><span
								class="icon-bar"></span><span class="icon-bar"></span><span
								class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="javascript:void(0);" onclick="getPage(this)" id="frame/welcome.jsp">TI</a>
					</div>

					<div class="collapse navbar-collapse"
						id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<s:iterator value="menuList" var="menuInfo">
								<s:if test="#menuInfo.parentId==0">
									<li class="dropdown"><a href="#" class="dropdown-toggle"
										data-toggle="dropdown"><s:property
												value="#menuInfo.menuName" /><strong class="caret"></strong></a>
										<ul class="dropdown-menu">
											<s:iterator value="menuList" var="menuInfoIn">
												<s:if
													test="#menuInfo.menuId==#menuInfoIn.parentId&&#menuInfoIn.parentId!=0">
													<li><s:a href="javascript:void(0);"
															id="%{#menuInfoIn.menuPath}" onclick="getPage(this)">
															<s:property value="#menuInfoIn.menuName" />
														</s:a></li>
												</s:if>
											</s:iterator>
										</ul></li>
								</s:if>
							</s:iterator>
						</ul>
						<ul class="nav navbar-nav navbar-right">
							<li><a href="#">统计</a></li>
							<li class="dropdown"><a href="#" class="dropdown-toggle"
								data-toggle="dropdown">${ sessionScope.user.name }<%-- ${applicationScope.app} ${sessionScope.sess} ${requestScope.req} --%><strong
									class="caret"></strong></a>
								<ul class="dropdown-menu">
									<li><a href="#">修改密码</a></li>
									<li><a href="#">修改手机号</a></li>
									<li class="divider"></li>
									<li><a href="#">注销登录</a></li>
								</ul></li>
						</ul>
					</div>
				</nav>
			</div>
					<div style="z-index: 1">
						<!-- <iframe src="welcome.jsp" style="width: 100%; height: 100%"></iframe> -->
						<!-- <iframe seamless="seamless" src="interface/interfaceFrame.jsp"
							style="width: 100%; height: 100%"></iframe> -->
						<iframe seamless="seamless" src="frame/welcome.jsp"
							frameBorder="0" id="mainFramePage"
							style="width: 100%; height: 100%"></iframe>
					</div>
		</div>
	</div>
	<!-- <div class="navbar-bootom"></div> -->
	<!-- <div style="width: 100%; height: 100%; z-index: 1"> -->
</body>
</html>